package com.zsc.wxm.ysh.anjo.house.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zsc.wxm.ysh.anjo.house.model.Promise;
import com.zsc.wxm.ysh.anjo.result.PageResult;
import com.zsc.wxm.ysh.anjo.service.base.model.resources.dto.PromiseDTO;
import com.zsc.wxm.ysh.anjo.service.base.model.resources.qo.PromiseQuery;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 描述：
 *
 * @author playmaker
 * @since 2021/3/9 23:36
 */
public interface PromiseService extends IService<Promise> {

    /**
     * 新增
     *
     * @param param
     */
    void add(PromiseDTO param);


    /**
     * 分页查询
     *
     * @param query
     * @return
     */
    PageResult listPage(PromiseQuery query);

    /**
     * 更新数据
     *
     * @param id
     * @param status
     * @param endTime
     */
    void updatePromise(Long id, Integer status, LocalDateTime endTime, Long houseId, Long rentUserId );

    /**
     * 根据房源ids批量获取合约信息
     *
     * @param houseIds
     * @return
     */
    List<Promise> getListByHouseIds(List<Long> houseIds);




}
